export default defineNuxtRouteMiddleware((to, from) => {
  const userPinia = useUserPinia()
  if (!userPinia.getToken) {
    abortNavigation()
    return navigateTo(`/welcome?redirect=${to.fullPath}`)
  }
})
